Fix remote error on dirty branch