Fixed a bug that the value sometimes not yield