fix the bar model generate

Change-Id: I8df87b27dd93f0e11198998869b97754ded3bca1