fixing ref to record in jsite