Fixed class errors.