fix highlight code when auto reload