Fixed browser compatability issues