Fix split threshold calculation