fix bug with nokogiri reference