Fixed missing brackets for NaN definition