Guard against negative and zero sd