fixed a bug in handling the output data in function pj_transform()