fixed but in input where incorrect input wouldn't be properly discarded