fixed init bug