Fixed a bug that it is always triggered.