Fixed error with Entity moveTo method