Quick bug fix in ItemLogScript