browser compatibility alert dialog and empty sequence error