fix a critical issue on the pamm-api loading