fix dereference to return a path that will result in null if the dereference fails for whatever reason