Fixed teleporting issue.