fix to append the last line in split_multimol2() function