fixed encoding mate map