Fixed free issue