fixed bug: insert into cache table