fixed bug with input types