fix bug at view id was not been assign. close issues #99