fix randomize trouble