fix checkbox and select bug