Input: fix open count handling in input interfaces