fixing is_archived check for new queries