fixed reveal modal refusing to close bug