fixed crash if hexColor length < 6