fixed relative path bugs