fixed weight to width
fixed index layout bug