Fixed bugs in the reloading mechanism.