fixed free bug (free->delete