share class init bug fix