bugfix for maps with size 0