Fixed firefox compatability issues