fixed small input bug