Fix looping bug in BodySyntaxLookup