Removes the double building of AJAX menus