fix empty as_sql got from super