Fixed a bug in parsing table tags