fix w3 problems