add a try catch because ie9 sucks