fixed bug in relative path calculation