fixes modal not respecting percentages