fixed stack overflow if table dynamically rendered