Another median fix -- I'm an idiot