Fix randomObject