fixed bug while trimming tag on updating a new cell