Fixing browser compatibility (firefox).