fix navigation bug for script detection