fixed config cleanup