Fix reference to $APP