fix the a bug when the table scroll to a specific position