Fix bugs in IE which caused subviews not to work