correction to maps plugin