Set attributes to NULL when remove attachment