Fixed bug for textfield number entry