bug in maptobins fixed