another attempt to fix the modal closing
Merge pull request #59 from macqueen/master

another attempt to fix the modal closing