Fix a bug with maplist