Fix bug in li_is_equal.

Signed-off-by: Casey Dwyer <caseydwyer@gmail.com>