minor fix to map