clean state before show preferences overlay #13