leak barrier equation fix