fixed tables screwed up by wrapping