fix possible issue with path_heler and nil