fixed issue when retrieving previous occurrence of branch occurrence having more than one previous