fix exit overlap bug