fixed a bug in table merger js plugin