fixed tapToClose bug