fixing routes model