Fixed bug when cancelling reveal 'close' event