Fixed: a few bugs (mostly for IE)