fixing bug due to maps api update