Fixed pms.c