fix exit transition bug