avoid NotRegularMatrix error
writing test, but can not reproduce yet ...