this part has no influence at al to the behavior - this is the code piece which is broken and causes the check box not to be set properly