Fix wrong generation of random colors