Fix checked flag on checkbox