fixed memory leak + simba crash somehow..