fixes bug in gexpr method introduced when default for texpr changed