determinant fix