fixed state manager compilation errors