fixed incorrect checkbox states #30