fixed modal dismiss bug on position search

fixed a bug where the page is unscrollable if applyModal is dismissed
without submitting form