fix modal window with editor bug