fixed up a fail in mapbuffer.cpp