Fixed faulty input