fix double navigation bug, remove meaningless lines