Fixed a bug in the Maps class.