Bug fixes for data.table corrections to outputSGP