Fixed checkbox bug