fix spark config bug