fix bug causing MZP to not work right