fix trial instance number getting erased
Reviewer: Daniel Jao