fix config and sph