avoid (null) in path