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