NaN occurred in optimization with NUTS