fixed class init