FIXED the bug when only the last task appeared in the attachment text