Typo in doFlush + serialize values