bugfix: fixed bug introduced with refactoring the ParseItem function