fixed a minor bug for an edge case v38