fix for file save in editor