fix attachmnet