Fix log4j memory appender