fixed a bug in the path method of the app class