fix bad leak