Fixed error with changed directory