Fixed handling of class without namespace