Bugfixes for step recognition within StateRepresentation.