fixed relative addresses bug