fixed php issue on ministry grid