Fixing printing issue