fix reference to unbound "app"