Fix logic to decide which new/delete operator to use.