Fixed modal closure behaviour
Merge pull request #296 from jvc26/fix-modal-closure

Fixed modal closure behaviour