fixing folder bug for concatenated pdf files