bug fixes, some related to IE8