mastercylinder?

Getting the correct one is important for sure, but, it won't change the pedal throw. I'm assuming you have the push rod adjusted so there is almost no free play, right? If so, there must be air in the line somewhere or the master has an internal leak.
the rod I used was the one in the old single pot master