Fix dirty branch parser