Fixed a bug that sprite update color terminated unexpectedly