hacked a fix for editor to work