fix initialize class