Fix appender bug