fixed bug where ending text would be clipped