fix some bug
api