fixed the table and figure issue!