Fixes loosing content when editing