a small bug in demo_sph.cpp