fix broken method in repository
added before filter on routes