correction for checkbox behaviour