fix bug not handling not_found