Minor change to solve_waveguide_mode.m