Fixed small bug in subsample validation