fix case when its not an actual class