fix checkbox bug, fixes #6