fixed a bug with picking up items