Fixed bug for degenerate cal data