fixed uninitialized values
fixed selected item (if checked or unchecked)