fix bug about api for data managment