FieldStorage access fix, empty inventory rows fix, invalid iteration fix