Fix bug with incorrect name property for child class