fixed init crash