Fixed branch cookie setting.