Fix A vs iQ issue in derivative.