fixed cases when D(x)*1 should give zero