fix initialize bug