Fixed menu script for modified MenuBase