fixed out of bounds with fake devices
fixing