Some fixes for color sensors