Tweak random color generation
Fix bug that happens with 'undefined' colorMode