fixed a bug in map parser