Bug fix: local attribute set wasn't obeyed in scan.