fix bug where keyboard does not appear on iOS6