figure ref fix