Bugfixes to hardcopy routine