Minor fix in stable calculation part