sub print bugfix