Fixed: little bug with memory leaks.