fixed device config bug