Fix another memory corruption