I agree with the maximum loop comment.  Nice catch and I have fixed this in a number of locations.