Bug fixed, calculate cell witdth correctly.
Added more buffer settings.