fix erroneous free