fix random problem