fix bug of new API record