fix bug related to API 1.2 upgrade