Fixed a bug with running out of colors