Ancelotti pleased after difficult win