BUG: #6175 removed assert_  statements