fixed a bug with teleporting into obstacles. fixes #8