fixed problem of diff with cancellation of rational function NULL