avoid NotRegularMatrix error
wriging test ...