fixed bug related to keyboard dismissal when canceling uiactionsheet