fix code random