Fixed an error in the app helper file