fixed initialize bug