Fixed input errors