If you replaced your master cylinder, you might have air in your abs pump/system.
I think it needs to be done with a scanner that can cycle the abs pump.
I've also heard of a "trick" that you can do but I've forgot what it is at the moment. I'll see if I can find it.
Maybe search the web with ABS bleeding or something like that?