Fixed a problem with extracting the colors