fixed empty table issue