Trying to fix not a number error