Fix logic error introduced in last commit.  Also add a comment to explain what
the code is doing.
1 file changed