Fix reactive updates and inserts