fixed init bug and did updater