Bug fixes, firefox compatability stuff.