fix bug if table caption is empty