Fixed new_session_from and save_session_as to work