Moving loop out of loop
Fixed item holding bug