fixed bug in log appender