Little fixes
Fix an error allocating memory for pointers