Fixed one bug — update twice each time when hit the alert button.