bug fix in maps js