First you need to bleed your brake system,if that doesn't cure your problem, then your master cyclinder is bi passing on the inside, rebuild it or try to find a new one. Is the any fluid leaking behind M/C?