Fixed a bug where mode="add" and delete would check if the option already existed before allowing it and the checked array was not yet set