fixed some small input errors