Made paths robust against being set.