On the regularity of minima