Added missing buf.flip