diff --git a/lib/fromPgn.js b/lib/fromPgn.js
index <HASH>..<HASH> 100644
--- a/lib/fromPgn.js
+++ b/lib/fromPgn.js
@@ -598,7 +598,7 @@ fieldTypeReaders['ASCII or UNICODE string starting with length and control byte'
 
     if ( field.Name === 'AtoN Name' && len > 20 ) {
       nameLen = 20
-    } else if ( len == 0 ) {
+    } else if ( len <= 0 ) {
       return null
     }
fix: error when a string is encoded improperly (#<I>)