Fixed several bugs and tested in IE.
Fixed several bugs.