What causes print lines like this? How do I prevent them?