Fixed scroll issue when loading old messages