fix view reference