Fixed weighted median zip-ordering bug