remove path from notfound middleware