[#2806] fix attachements bug