Fixed a few bugs with generating custom colors