fixes to rewardEveryNCorrect

Signed-off-by: Andrew McKinney <mckinney@neuro.duke.edu>