Fix classpath resources rendering
Better error handling