Fixed committing model changes in after-* event handlers