Bug fix checkbox not working