Fixed bugs in opera and firefox