Fix error if no maps have been created.