fixed case for compilers where type specific new operator doesn't work