fixed bug where writes weren't committing