Minor fix on sigma calculation