fixed bug: swap red and green