bug fix for item errors