Minor changes. Fixes alert in IE8