fixed repeat write log when modify