bug fix in map api