fix attachment delete and language switch fix