Fixed bug that removed lines before the token reached bottom