bugfix for memzone

closes GH-151