fix persistence plot