Fixes to SPD and support geometry (B. Nilsen)