Fixed bug in path utility