Fix bug in polynomial differentiate module