A couple of fixes for demo_sph