Ancelotti happy with win after 'offside goal'