Fix ext bug in dump functions