workaround for query