fixes a problem with path