Fix randmon bug