web interface: fix branch handling bug