Brake Master Cylinder Lid Leaking

Mine was leaking and I bought another master cylinder that seemed to have a smoother surface on the cast iron portion and leak went away. My previous master cylinder the cast iron surface wasn't smooth seemed rough porous.