Fix of overlaid modal window

Screenshot will be attached later