fix creating inputs