fix attachment directory