Fixed bug that caused config to be cleared