You changing default recolor script, and this mean you override "hair recolor" recolor as its was stored there.
To restore original behavior you need add missing operations:
unit.getRecolor new_pixel; add_burn_shade new_pixel burn shade; return new_pixel;