Added flat cap to buffer