device init fix