Fixes for Flash and IE8