fixed RGB bugs