Fixes to InputBox