fix free memory again