Added so it takes out the menu in the right order