bug in state_path creation.