fix the bug in instrument