Fixed the NaNs.