fix deleted_at bug