fixed a null pointer when creating a table
fixed the null pointer exception to be like th iteration panel