fix error displaying hidden dialog when you login a second time