Fixed bug in mam-pr