fix precision problems in beam_propatation class