Fixed issues #48, #58 (mobile safari input bug)