fix updating/cleaning deleted branch