fix innialization bug