fix device active status