Added Inivis sphere bugfix from ST
Invis spher compilation fixes.