Fix queryarchetypes method without criteria