Fixed the three states checkbox not setting the visual state on setState.