Updating to fix build error when proj ref exists. Resolved #46