fixed delete attachment