fixes to AddParen in deriv.c