Fixed bug in InputBox