fixed write log model