A simple method to regularize supercritical flow profiles in bends