fix map error key type