fixing buffer with tab