Fix bug: replace static::class by get_class()