An algorithm to improve consistency in Smoothed Particle Hydrodynamics. (2nd September 2015)