fixed bug for setting checkbox value.