Fixed leaf rendering
Fixed replaceItem causing a crash with stats
Use log4j for logging