fix bug that threw error when no og was defined