fix problem with dirty branch