Milan will learn from mistakes