Fixed memory corruption with Intel compiler