Fixed bug with median on lower cusp.