Removing possibility of NaN