Fixed an issue that caused entities to display in the wrong location in the first frame.