Fixed a serious bug about item collecting.