Fixed the removeMenu function.