fix map legend getter