Fixed input issues with windows