Fix checkbox state when launching app