Fixed OAuth app registration bug