items controller bug fix