event fired twice fixed