If you have a master cylinder with built in residual pressure valves you MUST the the front/rear lines going to the correct fitting on the master---Also if the master uses a separate metering/proport valve you will need to use the proper one for your systems specs.
And is your master cylinder clean???
And what kind of fluid are you using? some seals are not compatable with some fluids