fixed bug with opening modal window