fixed some warning

- fixed some warning
- modified decoder create
- fixed index border and center bar declaration

Fixed some warnings