Fixed a bug in new session buttons.