Fix device config