fixing two issues with config