Fixed segault! introduced memleak :)