Fixed a dysfunctional piece of code in @reloadscript

Special Thanks to mleo1 for providing the debug info.

Signed-off-by: shennetsind <ind@henn.et>