Change type of MenuBuilder to avoid an exception.