fix exitOnOverlayClick problem