Fix bug where name method is overwritten