Fixed bad trial count