fix navigation bug