Fixed bytecode save/load code