Fixed check for checkbox being checked.