fix auto open