fixed a bug with two or more calling init-alert