fix device assertion

Change-Id: I9db75c701e09acff654152c4fd69e7b3146c2c60