fix gtree interface for x