fix checkbox unchecking js