fix issue for trigger onclose after click to background of modal