Possibly fixed the removeMenu function.