fixed bug of random tuy.