Adding empty parent links bug fix