fixed random error