fixed a bug in the lifecycle state validator