Fixed onWrite death loop.