fix removing of content from modal