Fix input parsing.