Fixed error missing app function from app.