Fixed the removeMenu function.

The function was trying to remove a menu by value, instead of by key.