Fixed some issues with collaborative deleting and inserting