Small bugfix. Need to find double mem free.