This can be caused by either over exposure of the glue to heat or by pinning the nozzle when the nozzle is blocked. Pushing hardened glue back into the bottle can contaminate the remaining glue.