Fixed code generation in OpenGraph