Fixed bug when using leave one out