Fixed routing/path issue that prevented sub_request creation

Fixed #340.