This corrects the clearing of saved_messages and saved_levels. The previous code was just plain incorrect and caused memory access problems on some platforms. Dave