fix to ignore empty paths