fix random states