Chest Dispenser Patch

We cleaned and patched the code of the chest dispenser.