Fix tap exception in iOS