fixed app.publisher undefined error