fix for mcmapply