Fixed an error for map attributed