Fix color detection.

Why G and B are swapped?