Fix type of provider