Ranieri: 'Shame about the mistakes'