Bug fixed

Bug fixedc with closing modal window