fix bug of random teleporting