fixed a bug about alertbox binding and creating.