fix bug in SUBROUTINE/SUBMATCH_SUBROUTINE handling generating large output file