fix inserted blank line at buffer head