Fixed typo in the hide modal function