Fix issue of click on a menu which has children item.