Fix error with name states