Fix function generation for Opera