fix for issue "treat NAN as empty"