minor fix in clear_defaults