fix small init errors