Fixed more stats write error