[BUGFIX] If there's only one page in menu also add the lastClass to the item