fixing lively refs in class system