Fixes modal rendering