fix hot code reload