RGB variable order fix