Branch session setting changed to proper way