Fixed content rewrite on modal close