fix sub menu length issue