fixing segfault if path operation are defined before path