fixed modal window bug