fix issue with hex to rgb and also animation was not add last value when compare == 0