fix bug in AbstractMap