fixed a bug in zprime