small bugfix when moving