fix build with other devices