fixed removing attachements not synced to db yet