Fixes issue 7002
c++ does not like the way this was being initialised.