fixed: reverse code handling wasn't reversing colors properly