fixed init problems