fixed some bugs with moving paths. made moving paths compatible with editor as well