fix color swap between red and blue