Fixed Errors that appeared when not in root dir