brake problem

I have a 1979 dodge truck. I replaced the brake booster and the master cylinder. When the truck is not running the pedal is hard and seems to have good brakes. When the truck is running the pedal goes to the floor almost. The brakes work but something is wrong. I did bench bleed the master cylinder and bleed all of the lines. Any thoughts?