fix: handle current_trial=None