don't know how NaN get into the DB. work around it.