fixed random color function