PMG - Server script bug fix