On-shell prescription in three-particle scattering