Fixed small bug in SSD computation