Something may not be right with how far the piston is traveling inside of the master cylinder. Not knowing what you have as far as your master cylinder, push rod and brake pedal arm are concerned, I can't speculate any further. A piston stroke which is incomplete causes all kinds of problems, including the one you are having.