fix sph compile error