RNG fix