fixed bug on bad input