Fixed NPE with the renderManger and renderEngine