fixed init errors