Fix bug in crud url generation