Fix illegal reference