Fix nalsize check to avoid an integer overflow that made the check