fixed some bugs with hidden items