Bug fix: use app_path instead of path