Fixed a bug in subreqtree