Fix syntax errors with app object references