Fixed a bug in chatmap lookup