Fixed bug with ncuts