fix common and changed directory