fix displaying of print icong
add error catch handling