some init bugfix