Fix parsing of 'where' output