fix #171 when calling armory