Manuel Pellegrini accepts his team's defence needs to improve following Manchester City's 3-1 defeat to Arsenal in their final pre-season match.