fix before exception with /ressource/:id url