Part of fix for sph variables