Fixed constructor with path argument.