$STY won't get changed if sessionname is changed during the session

Worked around it.