fixed bug, replaced reset() with unset() in item.functions.php