fix rpihddevice crash-a