fixed color detection