Fixed ApiSession use