Critical error when resourceTree not initialized