Fix for doParallel - 'object tmp.data not found'