Another good catch, thanks, fix to this pushed.  Now comparing against maxscore if it's there instead of just comparing against 1. 

not sure about your tolerance point though.  Some best practice I don't know about?