workaround for strange color channel swapping problem