Fixed error after closing with default settings