Fix old class functions.