updated search gem, fixed error of updating and reference text comes up as missing