fix warnings in state struct