fix bug on api version