fix a bug for the inverse by dividing 0 in sparse vector