Manchester City midfielder Gareth Barry admitted the champions had to grind out their victory at Wigan.