Fix problem with empty table