fixed bug with print message