Fixed hidden resize and refreshing