fix origin setting