fixed bug with creating new file and fed objects from editor to script