fix for bad input on mobile devices