[fixed] Loot manager script from my previous review.

Change-Id: Iaa58d170f363fd0f653f9fdc70d8246fa3ea43fd