fix attachment