Fix for modal window