Update topOffset counting