corrected typo in pvapi and tested locally