ppCustom undefined error bug fix