fix for editor and old versions of Prototype