In set_menu_bar_lines call change_frame_size instead of set_menu_bar_lines_1.