Two fixes to make it compile and display coorectly the messages