A corrected smoothed particle hydrodynamics method for solving transient viscoelastic fluid flows