fix a bug when some new element added into the scroll