fix bug when a branch contains dots