fix barris query