Dfoxpowell/fix modal glitch