fixed bug in Editor, commands didn't get the newest currentEntity