fix logic==nil problematic for parsing callbacks.