fixed funny table resize behaviour