Added fix-derivatives script