Fixed infinite print