small bug fix on inputfiled