fixed small bug in amap