fixes for MSIE compatibility ;)