fixing init lock