Limitations of first law of thermodynamics