bug fix in items controller