Fix modal bug (couldn't not be hidden after showing)