[FIX] getAssetByResourceId -> getAssetById. Save and restore render state.