Here's where a state complaint laid some of the blame.