fix bug in origin-translation