resources init fix