fixing origin reference