linkify and state fix