compute_sd_Fix is now working, at least for the first small test case