bytecode_api: fixed variable assignment issue