midas logout fix