Fix mean and median