Fixed bug: reward being released regardless of the trial status.