fix bug with missing modal-window