FIX: bug altering data on reshelvement.

Needed to manually reset a global variable.
Fixed in two lines of code.