Input error bug fixed