bug concerning determinant fixed