bugfix https://github.com/AdeleResearchGroup/ApAM/issues/102