You approximated a sum by an integral, and when that approximation proved untenable, you should have gone back to evaluate the sum more accurately. Instead, you threw your hands into the air and invented a phase transition!
What good is the thermodynamic limit, D. F. Styera