Fix not detecting correct color values

Change-Id: I8b0d612f6c5cc2d5a43d3280214304f542a8c621
Signed-off-by: frap129 <frap129@gmail.com>