fix appender bug