Fixed bottom line out of bounds bug