A New Stable and Consistent Version of the SPH Method in Lagrangian Coordinates