fixing an issue when no config value in clean function