Fixed bug with end text