Fix for bug where an error would occur in IE that would prevent use