Fixed error on randomize()