fixes modal issues