fix clost bug