fixed the ending warning message