Fixes crashing bug if items cannot be parsed