0264: Buf fix in turn calculation
#841