fix dynamic table