Fix ext parsing