bugfix of print feature