Fixed error with rederclaration kStateActive variable