Fixed obvious bug with getCenterPosition