corrected checkbox bugs