Fixing some stupid errors with the editor