Fix device's errors.