fix random seed issue