Fix device asserts