Fixed the error message on activity destroyed.