Fixed freezes when teleporting.