fixed relative bug