fixing a view bug from figure element