Fix bug in module reloader / hotswap