Issue 113 some states are not connected

Fixes #113