fix variable name when querying on listings