Thermal instability of viscous fluids