Fixes for MapReduce function used without buffer

ok got the correct base/head combo this time lol