All checkbox are kept checked after generate