ensure cusor list close